package education;

public class bank {
	protected String id;
	protected String password ;
	int balance ;
	
	public void withdraw(int amount) {
		if(amount > balance) {
			System.out.println("not enough moeny!");
			
		}
		balance -= amount;
	}
	public void changePassword(String password) {
		//遮蔽问题，this解决遮蔽
		this.password = password;
	}
	

}
